% latex table generated in R 4.4.0 by xtable 1.8-4 package
% Thu Apr 10 09:23:04 2025
\begin{table}[ht]
\centering
\begin{tabular}{rrrrrr}
  \hline
 & McCain '08 & Romney '12 & Paul '12 & Trump '16 & Kasich '16 \\ 
  \hline
Huckabee '08 & \cellcolor{gray!30}-0.367 & -0.046 & -0.023 & 0.036 & -0.140 \\ 
  Romney '08 & \cellcolor{gray!60}-0.538 & 0.192 & -0.136 & 0.085 & -0.028 \\ 
  McCain '08 & 1.000 & -0.042 & 0.052 & -0.075 & 0.121 \\ 
  Romney '12 & -0.042 & 1.000 & \cellcolor{gray!60}-0.684 & 0.177 & -0.055 \\ 
  Paul '12 & 0.052 & \cellcolor{gray!60}-0.684 & 1.000 & -0.135 & 0.102 \\ 
  Trump '16 & -0.075 & 0.177 & -0.135 & 1.000 & \cellcolor{gray!60}-0.545 \\ 
  Kasich '16 & 0.121 & -0.055 & 0.102 & \cellcolor{gray!60}-0.545 & 1.000 \\ 
   \hline
\end{tabular}
\caption{Correlations of vote shares in Republican primaries from all California precincts (n=11989-26049).} 
\label{t:ca:gop}
\end{table}
